const Router = require('koa-router')

const router = new Router()

router.use(function(ctx, next) {

	console.log('pppppppppppppppp')
	return next()
}, function(ctx, next) {
	console.log('ddddddddddddddddd')
	next()
})

router.get('/test', (ctx, next) => {
	console.log('ttttttttttttttttt')
	ctx.body = {
		a: "aaaaaaaaaaa"
	}
})

module.exports = router